import os

MAME = r'mame.exe'
PARAMS = r'-w'
# 可变
ROM = 'ddpdojt'
INP_FILE = r'ddpdojt_firstSimple1coin.inp'
AUTOBOOT = True

## 运行
command = f'{MAME} {ROM} {PARAMS} -playback {INP_FILE}'
if AUTOBOOT:
  command += f' -autoboot_script .\\myLua\\autoboot\\{ROM}.lua'
  
os.system(command)
